package com.qunar.wan.common_api.model;

import java.io.Serializable;

/**
 * User: cyoung Date: 11/27/13 Time: 10:46 AM
 */
public class Sort implements Serializable {

    private static final long serialVersionUID = 6113764947252019255L;

    public enum Order {
        ASC, DESC
    }

    private String name;

    private Order order;

    public Sort(String sortColumnName) {
        this(sortColumnName, Order.ASC);
    }

    public Sort(String name, Order order) {
        this.name = name;
        this.order = order;
    }

    public String getName() {
        return name;
    }

    public Order getOrder() {
        return order;
    }
}
